package com.atguigu.realtime.publisher.trade.service.impl;

import com.atguigu.realtime.publisher.trade.bean.TradeProvinceOrderBean;
import com.atguigu.realtime.publisher.trade.mapper.TradeProvinceMapper;
import com.atguigu.realtime.publisher.trade.service.TradeProvinceOrderService;
import com.atguigu.realtime.publisher.traffic.mapper.TrafficChannelStatsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

@Service
public class TradeProvinceOrderServiceImpl implements TradeProvinceOrderService {

    @Autowired
    TradeProvinceMapper tradeProvinceMapper;

    @Override
    public List<TradeProvinceOrderBean> getProvinceOrder(String date) {
        return tradeProvinceMapper.selectProvinceOrder(date);
    }

    @Override
    public BigDecimal getTotalAmount(String date) {
        return tradeProvinceMapper.selectTotalAmount(date);
    }
}
